package com.example.onlinemusic.mapper;

import com.example.onlinemusic.model.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hold on
 * Date: 2022-07-26
 * Time: 13:38
 */
@Mapper //实现xml映射,无需通过其他的mapper映射文件!
public interface UserMapper {
    //登入功能!
    //通过查询user登入
    User login(User loginUser);
    //查询name进行登入!
    User selectUserByUserName(String username);

    //注册功能!
    int register(String username, String password);
}
